Repository navigation
ci(test-core): place slice shards by wall and widen Test Core to twelve shards - #38258
Conversation
…ve shards A split that carries a CLI slice is now placed by modelled wall: slices first, then whole packages onto the slice-free shards while they fit WHOLE_LEG_CAP_SECONDS and keep LOAD_SENSITIVE_APART apart. Twelve shards give the nine slice-free shards room (whole legs 1515-1520s on the 2026-11-23 dataset), so the slice shards run their slice alone. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · f7e02ac · 2026-11-28T11:00Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: PR #38258 (card #36646), net diff of the head against merge base ① Derived judgments
② Semver levelClause-②: no — agreed. The diff touches ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. ci.yml against the ruling it implements (release 7232820216: levers A and B together, C and E not taken, D left). Holds. The TWELVE paragraph cites report 7232799392's figures as that report states them (whole leg p50 287 s, slice leg p50 887 s, 12 sampled runs). Its arithmetic checks against the committed dataset: 13711 s of whole packages over the nine slice-free shards is about 1518 s each, under the 1868 s cap and under the 1696 s carried at ten; at ten, seven slice-free shards hold at most 13076 s, so the rest spills and the seven sit at the cap, which is the density the ruling refuses for A alone. The fallback sentence ("falls back to all twelve shards") is true of the expression beside it.
Tried to break it.
No real CI run has exercised Nits, none affecting correctness or the contract; all sit in comments on non-prose faces, so they are left as accepted deviations or a follow-up, not fixed on this head:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head Review summary
Owed after merge: Next: Tier H ( |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T11:09Z · PR #38258 (Part of #36646) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang: levers A and B of #36646. Test Core widens from 10 to 12 shards, and a split that carries a CLI slice is placed by modelled wall instead of bin sums. The modelled slowest shard falls from 19.2 to 18.3 min. Permissions, secrets, cache rules and triggers are unchanged, and
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked. |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46138794448 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Queue ejection diagnosis · 2026-11-28T11:41Z · PR #38258 · head Queue build 46138794448 failed one assertion: @os-zhuang: there is no APPROVED review on this head; the merge was enqueued by hand. So the seat cannot re-arm it, and it waits for your re-enqueue, or for an APPROVED that lets seat 1 land it. Nothing on the PR needs to change. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Correction · 2026-11-28T11:43Z · to my diagnosis 7238720218 on PR #38258 The cause stands: #38169's |
Requested by Elon · project thread
Part of #36646
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Levers A and B of the routing in the release comment on #36646 (7232820216), on one branch; C and E are not taken, D is left.
scripts/partition-test-shards.mjs, newplaceByWall()/wallOfBin(), called fromplaceItems()). A split that carries a CLI slice is no longer balanced on bin sums. Slices go first, one per shard, then whole packages land on the slice-free shards while each whole leg stays withinWHOLE_LEG_CAP_SECONDS(1868 s) andLOAD_SENSITIVE_APARTstays apart; only past that do they spill, least modelled wall first (so onto a non-reader slice shard before the reader slice's, whose declaration closure is 270 s of serial wall). A split with no slice is still the plain LPT split, byte for byte, and the density-cap repair (refineToCap) still runs after either placement..github/workflows/ci.yml, thetestjob andtest-gate): the matrix fallback roster, the job name,--shard k/12, the attestation--total 12/ artifact names, the gate's--leg test/12and planned-roster fallback, and the timing-capture/cache-prune labels.SHARD_COUNTis read from the matrix (scripts/ci-shard-matrix.mjs), so the partitioner, the planner and the timings selector follow without a literal of their own.scripts/pm/landing-k.mjs's self-test pins the shard job's name, so that pin moves to/12.testjob header gains a TWELVE paragraph;plan-test-core-shards.mjsheader; theSHARD_COUNTdocblock carries the figures).Tests
Partitioner self-test: new battery and ablations
a split that carries a slice is placed by wall (#36646)(8 cases). 3 cases grade the committed dataset as CI splits it: no whole package beside a slice except the reader slice's riders; the non-reader slice shards' heaviest modelled wall falls while the split's heaviest does not rise; no whole leg within 5% of the cap. 5 are fixtures: the spill order, the load-sensitive pair, a package that fits no bin, slice spread, and the no-slice identity. The battery floor goes 18 → 19.node scripts/partition-test-shards.mjs --self-test:self-test OK (82 measured packages -> 84 shard items, 12 shards, max/mean 1.18x <= 1.3x, floor 1314s, bins 1662.99/827.08/827.08/1514.98/1517.07/1517.11/1517.79/1518.22/1517.51/1518.58/1517.13/1519.68s within the 2481.24s density cap, whole legs 53/0/0/1515/1517/1517/1518/1518/1518/1519/1517/1520s within 1868s, file-level slices: @objectstack/cli x3).scripts/ablation-replace.mjs:placeItemsrouted back topartition(). The mutation landed (anchor 1 → 0, blob 18e01104a20d → adfbed35e9c3), the self-test exited 1 onwall placement: the committed dataset at 12 shards puts whole packages beside a slice (@objectstack/service-settings on shard 5, …), and the file was restored to blob 18e01104a20d with an emptygit diff HEAD.placeByWall. The mutation landed (blob → e76084fdaefa) and the self-test exited 1 onthe spill fixture split as [c 1/2 | c 2/2 | w,x,y,z]. Restored the same way. The committed dataset does not spill at twelve, so only the fixture can catch this one.plan-test-core-shards(23 cases),ci-shard-matrix(27,live: test=12),check-shard-attestation(360),select-shard-timings-run,landing-k(47).Acceptance notes
queue-duration.mjs --since 7dat 2026-11-28T10:09Z over 1319 all-green SHAs gives p50 22.9 and p90 32.3 min (over both). Its slowest critical-run job isTest Core (3/10)at a 19.6 min median.planShards(), before at 10 and after at 12, with a whole-leg fit from those runs' logs (297 legs:-45 + 0.326*sum + 0.351*heaviest, median error 20.6%) and each run's measured slice legs.queue-duration-budgetrun, ornode --use-env-proxy scripts/ci/queue-duration.mjs --since <merge time>once a few hundred queue SHAs have run at twelve.Test Core (3/10):@objectstack/runtimealone measured 19.5-22 min) was the slowest on 9 of 28 all-ten runs. Neither lever moves a single package's own wall.Part ofleaves the card open for the weekly reading.testjob header already measures. Shards 11 and 12 start with a cold per-shard Turbo cache key untilmain's push runs seed them, and every shard's package set moves once, so the first queue runs after merge read slower than steady state.Test Core (k/N)width, so the ten-wide runs stay readable. Its next refresh needs twelve-wide runs to accumulate.scripts/ci/queue-budget.jsonis untouched.skip-changeset: the diff ships nothing from any published package (rootscripts/and.github/only).Verification
Read first:
scripts/partition-test-shards.mjs,placeByWall()andplaceItems(). The risk is the candidate filter: the cap and the apart pair, then the fallbacks..github/workflows/ci.yml, thetestjob'sstrategy.matrixandtest-gate's--leg test/12andOS_TEST_PLAN. Every/10literal of the job has to move together.Two-minute check:
node scripts/partition-test-shards.mjs --self-testprints12 shards, and whole legs53/0/0/1515/…/1520s within 1868s, so the three slice shards carry their slices only.Generated by Claude Code